package 个人密码库.view.outputview;

import com.alibaba.excel.EasyExcel;
import 个人密码库.model.Password;

import java.util.List;

public class ExcelOutput implements Output {

    @Override
    public void output(List<Password> passwords, String path) {
        EasyExcel.write(path, Password.class)
                .sheet("密码表")
                .doWrite(passwords);
    }
}
